package cn.shutdown.farm.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name = "PLANT")
public class Plant implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	@Id
	@GenericGenerator(name = "idGenerator", strategy = "uuid")
	@GeneratedValue(generator = "idGenerator")
	@Column(name = "ID")
	private String id;
	/** 植物名称 */
	@Column(name = "NAME", length = 100)
	private String name;
	/** 植物等级 */
	@Column(name = "LEVEL", length = 100)
	private String level;
	/** 植物种子价格 */
	@Column(name = "SEED_PRICE", length = 10)
	private Long seedPrice;
	/** 植物果食价格 */
	@Column(name = "FRUIT_PRICE", length = 10)
	private Long fruitPrice;
	/** 植物果食产出数量 */
	@Column(name = "FRUIT_NUM", length = 10)
	private Integer fruitNum;
	/** 成熟时间 秒 */
	@Column(name = "RIPE_TIME", length = 10)
	private Long ripeTime;
	/** 种植植物可以获得的经验 */
	@Column(name = "EXP", length = 10)
	private Long exp;
	/** 创建日期 */
	@Temporal(TemporalType.DATE)
	@Column(name = "CREATE_TIME", length = 7)
	private Date createTime;

	public Plant(String id, String name, String level, Long seedPrice,
			Long fruitPrice, Integer fruitNum, Long ripeTime, Long exp,
			Date createTime) {
		super();
		this.id = id;
		this.name = name;
		this.level = level;
		this.seedPrice = seedPrice;
		this.fruitPrice = fruitPrice;
		this.fruitNum = fruitNum;
		this.ripeTime = ripeTime;
		this.exp = exp;
		this.createTime = createTime;
	}

	public Plant() {
		super();
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}

	public Long getSeedPrice() {
		return seedPrice;
	}

	public void setSeedPrice(Long seedPrice) {
		this.seedPrice = seedPrice;
	}

	public Long getFruitPrice() {
		return fruitPrice;
	}

	public void setFruitPrice(Long fruitPrice) {
		this.fruitPrice = fruitPrice;
	}

	public Integer getFruitNum() {
		return fruitNum;
	}

	public void setFruitNum(Integer fruitNum) {
		this.fruitNum = fruitNum;
	}

	public Long getRipeTime() {
		return ripeTime;
	}

	public void setRipeTime(Long ripeTime) {
		this.ripeTime = ripeTime;
	}

	public Long getExp() {
		return exp;
	}

	public void setExp(Long exp) {
		this.exp = exp;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}